package com.mask.core;

/**
 * ClassName SeasonTest
 * Create by hx
 * Date 2021/9/2 2:30 下午
 */

public class SeasonTest {
    public static void main(String[] args) {
//        for (Season s : Season.values()){
//            System.out.print(s+","+s.getCode()+","+s.getDescription());
//            System.out.println();
//        }

        getSeason(2);
    }

    public static void getSeason(int code){
        switch (code){
            case 0:
                System.out.println(Season.SPRING.getDescription());
                break;
            case 1:
                System.out.println(Season.SUMMER.getDescription());
                break;
            case 2:
                System.out.println(Season.AUTUMN.getDescription());
                break;
            case 3:
                System.out.println(Season.WINTER.getDescription());
                break;
        }
    }


}
